package com.wp.design.structural.decorator.v2;
/**抽象的装饰者*/
public  class AbstractDecorator extends AbstractBattercake {
	/**抽象的煎饼*/
	private AbstractBattercake abstractBattercake;

	public AbstractDecorator(AbstractBattercake abstractBattercake) {
		this.abstractBattercake = abstractBattercake;
	}

	@Override
	protected String getDesc() {
		return this.abstractBattercake.getDesc();
	}

	@Override
	protected int cost() {
		return this.abstractBattercake.cost();
	}
}
